If /check is accessed on an HTTPS server, the WebRTC check fails because it always try to open a non-secure websocket. We should replicate the same implementation we have on the flash client, in which we use WS or WSS depending if the page is loaded on HTTP or HTTPS.