I saw several ways in which you can create a javascript file, including other javascript files, but they all look pretty hacky - basically they include binding the javascript file to the end of the current document, and then downloading it somehow.
Why doesn't javascript include the simple “load this file and execute the script in it” include directive? This does not seem to be a new concept. I know that everyone is thrilled that everyone does HTML5 using javascript, etc., but wouldn’t it be hard if you have to hack the lack of basic functions like this?
I don’t see how this would be a security issue, since a web page can include as many javascript files as they like, and they all execute anyway.
Colen source share