change js distance