Add javascript test for subprotocols