use sendmail
load js files in the right order