moved polyfills into separate file