;
        client.subscribe("bunny", {qos: 1});
    },
    onFailure: function (message) {
        debug("CONNECTION FAILURE - " + message.errorMessage);
    }
};

if (location.protocol == "https:") {
    options.useSSL = true;
}

debug("CONNECT TO " + wsbroker + ":" + wsport);
client.connect(options);

$('#first input').focus(function() {
    if (!has_had_focus) {
        has_had_focus = true;
        $(this).val("");
    }
});

send = function(data) {
  message = new Paho.MQTT.Message(data);
  message.dest