Bug 836215 - Part 1/2: PhoneNumberJS: shamelessly copy of IsViablePhoneNumber() from upstream.
Bug 836215 - Part 2/2: validate number in nsIDOMTelephony.dial()