#325 polyfills for ie8 support

so this is for #325, I was thinking about tests but honestly I really can't as we don't test on IE at all, but http should work on ie8 with this.