Older browsers report the typeof some host objects and regexes as "function"
Merge pull request #8 from ljharb/proper_function_checking

Older browsers report the typeof some host objects and regexes as "function"