Formats text fields as phone numbers on the fly, like when you type in the iPhone's phone number field.
Just call formatsPhone
where you want the behavior.
$('input[type="text"]').formatsPhone();
Now all text inputs on that page will format phone numbers.
- Backspace behavior is a bit weird.