JavaScript functions for validating, parsing, and normalizing URIs and email addresses