Initial commit of rewrite in Pebble.js