fixing other js files, mail.php still needs testing