Fix for demo

The demo didn't work for me in chrome or IE11. This is now corrected.