Bug Fixing

Fixing PhoneGap API use in Mobile device