fixed #756 - sequestering Notifications and Chat DOM functions in their module, and not in footer