Clean up js file