Removes lots of old unused JS stuff