remove js cruft