remove unnecessary metrics JS cruft