make js local