Working pebble app, uses AJAX instead of sockets