Fixed jquery event listener from notifications-badge.js