Verify if it's browser or cordova app, to show native or js alerts