fixed bug in javascript button actions. added doctype to html pages