Little JavaScript refactoring

 - rewrite email desanitization function (for profile.php)