Tidy up Javascript files.