testing phonegap code