js local & online