Modified demo.js for IE 11 compatibility.