I think chatroom_add_js() should not be called on all pages: http://drupalcode.org/project/chatroom.git/blob/refs/heads/7.x-2.x:/chat...