add doctype; put styles and scripts in <head>; use protocol-relative urls