typed array polyfill for old browsers