Change the JavaScript to work remotely.