Vaildate email addresses in client side javascript