Removes cruft from js file.