Fix HTML5 errors in theme templates

Fixed #54