support browsers that don't support typed arrays