removes old dead javascript