Update pebble.js

only adds battery if element exists in mongo database