A wrapper for phone numbers used in Javascript, provides validation, parsing of various formats and outputs to specified formats.
This uses grunt to handle testing and all that. The tests are written in Jasmine.
Just include the javascript file
Then use the wrapper: