Removes JS imports that aren't used.