Stronger type checking

el.tagName returns a string, so better to check type and equality by changing '==' to '==='
Merge pull request #78 from chiester/master

Stronger type checking