fix typed array in browser