Use typedarray for browser support