A small javascript (mootools) for load javascript files.
This is great if you have a lots of javascript and you dont want have your <head> with this javascript.
With this script you can load a javascrip file when you want.

function include_js(file_path){
var js = new Element(’script’)
.setProperties({’src’:file_path,’type’:'text/javascript’})
.injectInside(document.head);
}

Ex.
include_js(’thm/js/calendar.js’);

Sorry, mootools has http://docs.mootools.net/Remote/Assets.jsĀ