adding polyfills to demo to make it function on IE8