Update PhoneDialer.js to support phonegap >= 2.1