making js local