modified Telphonymanager interaction with cordova