WebSocket exposed to WebView Javascript for devices with API < 4.1