Add polyfills so example works in IE8 fixes #7