moves tha_before_html inside doctype element

fixes #49