clean up the js scripts