change js to local