cantankering with phonegap example code