Migrated into PhoneGap project