Cordova Version: Added console.log to deviceready and document ready.
                    cordova plugin add org.apache.cordova.console. This enabled console.log() statements to be displayed in xcode console.