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

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