fixed cooldown bug in Chrome when tab is inactive; fixed msgLayer bug that listens for click event