Update pebble.js

Added trend output option being set from the current element data obtained from the mongodb