code cleanup and jslint
corrected the e-mail regex (search & replace ftw...)