move browser polyfills to separate file