Clean up javascript file.