Added a doctype (can't believe we didn't have one all of this time!), some CSS changes to make it work.