change supportsArrayBuffer check to work with Safari