IW: typeof is not a function, missing ;