cleanup the js file