Trying to debug as a phonegap app