Update pebble-js-app.js

bug fixes because of stupid coding.