remove javascript that is unused