testing webapp with Phonegap / PhoneJS