Merge location.js and websocket.js.