Note to self.
Say you are using Cordova, and you think you can just add in any old navigator.notification.* (navigator.notification.confirm) method you want.
Well, first, please remember to read the documentation. Perhaps installing the dependencys would be nice.
If notification looks undefined, thats because it is.
try: cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git