AYI working through phonegap