Fix HTML5 errors in theme templates

Fixed #54
Merge pull request #62 from ikalnitsky/issue/54

Fix HTML5 errors in theme templates