better xhtml compliance

except for script and doctype, code now validates for xhtml 1.0 strict as well as html5