Code refactoring with sugar.js.
Notify user when got messages.