removing archaic js