You can use a Javascript here-document to load jQuery and other supporting code, from another .js. http://stackoverflow.com/questions/805107/multiline-strings-in-javascript/5571069#5571069 Example here: http://paperlined.org/js/client_side_markup.here-doc.js http://ejohn.org/blog/degrading-script-tags/