syntax fix - typeof is not a function, it's  an operator

following the comment of @shesek here: https://github.com/bitpay/bitcore/pull/500/files#r16642032
`typeof(foo)` should be `typeof foo`
Merge pull request #509 from sagivo/patch-2

syntax fix - typeof is not a function, it's  an operator