Change client JS to connect to remote server if not being hosted locally.