Tidy old js version