connectToRabbitMQ(uid);
		        }
		        connected = true;
		    }
		    window.setTimeout(function() { checkifConnected(); }, 2000);
		}
		var favicon = new Favico({
			type : 'rectangle',
			elementId : 'badgeImage'
		});
		//Handling first entry in local storage
		if(isNaN(parseInt(window.localStorage.getItem("adminPushNotificationCount"),10))) {
			window.localStorage.setItem("adminPushNotificationCount",0);
		} 
		if(isNaN(parseInt(window.localStorage.getItem("userNotificationCount"),10))) {
			wi