SyntaxFix
Write A Post
Hire A Developer
Questions
I would say echo() ing them directly into the Javascript source code is the most reliable and downward compatible way. Stay with that unless you have a good reason not to.