First real attempt at making this a pebble app. Much needed help provided by https://github.com/pebble/pebble-sdk-examples/blob/master/pebblekit-js/weather/src/js/pebble-js-app.js