ported doctype and whitespace fixes from Theseus
jshinting