Fix delegated event example to use on() instead of delegate()