Added polyfills and made the build Windows 8 compatible.