Solution to JavaScript Email and Url Validation Exercise