Fixed method typeof, did not work correctly in the minified version of the library