Strip out JS cruft