jsinclude (source)

Add support for loading external files in javascript.

It loads js content and replace C include directives (#include "uri") with content. The C syntax was choosen for familiarity with it's ecmascript brother, actionscript. The use of a C preprocessor was avoided to add infinite include check and URLs support.