fixed typo and added support for .html