A pure JavaScript (no dependencies) solution to make HTML phone inputs self-validating.