Using LucidJS event-based architecture