added a layer of abstraction for conventional and phonegap confirm

Signed-off-by: Floyd Pink <imbleedingme@googlemail.com>