chat.js: Display HTML5 notifications on new messages.
chat.js: Display notifications only if the page is "hidden".