made websocket server address dynamic in js file