clean up js file