Use router instead of Engine.emit

Bundled plugins are implementation example so it should use proper style.

@sonots Could you check this?