Revert "Revert "Updated cordova ondevice ready""

This reverts commit 4e9ed9ab9d425cf3beb85400d41856ab24f46354.