Add support for htm - Fixes #1