Remove parens from typeof operator

typeof is not a function https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/typeof

extra: removed space from anon function to keep your coding style :)