starting adding api's for phonegap