dojox Socket not working on IE

The earlier way of fetching the baseURI using document.baseURI wont work with IE browsers even though IE9 does support the WebSocket feature. To handle this, conditions are added to generate the baseURI irrespective of any browser.