fix ie8 support

I will deploy this on the docs site for some testing before merging back to master