Fix demo event listener

Fixes #2 Demo page doesn't work