fixing client js to connect to current location