Using Reduce Method Javascript Substring Email Google