Update simple-both.js

example should show how to make this work when server and client are on different hosts.