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