Example implementation of a event-based web callback listener