change js reference to local