support WebSocket and XHR for ie8 and ie9