Added phonegap support
Merge pull request #168 from ArcBees/cg_phonegap_support

Added phonegap support