#94 fix typeof for IE