Fixing phonegap - angular.js issues