clean up the js