Javascript should build token and return to Pebble