Browser code for MQTT over WebSockets, making use of Paho JavaScript Client