adjust js to use host url