Cleans up js file.