reorder javascript files in base template
add an event that gets triggered on each url with the module name
move sammy definition for hosts module outside of onload function