corrects "typof" typo causing "SyntaxError: Unexpected identifier" error