Added local storage in the pebble javascript