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

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