Phonegap - AngularJS practice