checking if confirm works in phonegap