fixed HTMLElement check to be compatible with IE8
Merge pull request #45 from moumar/master

fixed HTMLElement check to be compatible with IE8