Showcase of Phonegap API using AngularJS