Added Adobe Phonegap support