Updated app to play nice in cordova-3.5 (work in progress)