Added proper type check for window and Uint32Array, which was causing errors for <IE10