Tag email validation in javascript