Made DOM follow HTML5 doctype and updated several classes accordingly.