chang js to local