Update pebble-js-app.js

Improved Error Reporting (Hopefully correct code this time)