MOBILE-534 - Implemented toNativeURL for Cordova emulator and node-webkit