default to 'html' for unknown file extensions

before this change it passed unknown 'type' as is, and crashed in 'getRegex'
Merge pull request #9 from amitport/patch-1

default to 'html' for unknown file extensions