Update controls.js

had a hardcoded local url
Now the page should detect the server url