fixes bug in IE and Firefox with webkitNotifications supported only in Chrome

Steps to reproduce in any browser except Chrome: 
 1. join any chat
 2. leave the chat
 3. click on input box "click to JOIN"

Actual result: js error