try having plugin be phonegap