Trying to debug issue with phonegap.