Adding in structure from ng-phonegap.