Initialize a listener in index.html