efined') {
				    			totalperks = parseInt(parsedNotificationBody.userperks.availableperks)  + parseInt(parsedNotificationBody.userperks.pendingperks) ;
				    			window.localStorage.setItem("totalperks",totalperks);
								$("#total-points").html(totalperks);
		    				}
		    				
		    				var oldUserNotificatioId =  window.localStorage.getItem("oldUserNotificatioId");
		    				if (oldUserNotificatioId != notificationId) {
								if ( parseInt(parsedNotificationBody.newnotificationcount, 10) > 0) {
