cleanup the javascript file