Updating the JavaScript application to support new URL