only load the javascript files that are needed
add clearing