change js to with local