better js handling
added email popup #79

waiting on smtp server info to test email function.