updated the index file to use window.location properties for socket connection