pebble-ml implementation with javascript dom