Updated safari polyfill