<html>
<head>
    <title>FridgeCam</title>
</head>
<body>
<script src='./browserMqtt.js'></script>
<script>
var url = 'wss://io.adafruit.com:443/mqtt/'
var topic = 'fridgecam'
var username = ''
var password = ''
var full_topic = [username, 'feeds', topic].join('/')
var options = {
    'keepalive': 60,
    'username': username,
    'password': password,
}
var client = mqtt.connect(url, options)
client.subscribe(full_topic)

client.on('message', function (topic, payload) {
    console.log([topic, payload].join(': '))
    client.end()
})

client.publish(full_topic, 'snapnow')
</script>
</body>
</html>

<html>
<head>
    <title>FridgeCam</title>
</head>
<body>
<script src='./browserMqtt.js'></script>
<script>
var full_topic = [username, 'feeds', topic].join('/')
var options = {
    'keepalive': 60,
    'username': username,
    'password': password,
var snapObject = {
	url: 'wss://io.adafruit.com:443/mqtt/',
	fridgecam: 'fridgecam',
	fridgecamsnaps: 'fridgecamsnaps',
	username: '',
	password:''
}
}
var client = mqtt.connect(url, options)
client.subscribe(full_topic)

client.on('message', function (topic, payload) {
    console.log([topic, payload].join(': '))
    client.end()
})

client.publish(full_topic, 'snapnow')
</script>
</body>
</html>

Create an object that will store username, password and topics
Create an object that will store username, password and topics
