added a working demo by opening index.html