used cordova properties, and added console log