Add emit and broadcast to scope

Emit and broadcast events