IW: typeof is not a function, missing ;

Yeah sorry... habit. I can revert that change.