Edit in JSFiddle

// Set FavIcon and Page Title for Push Notifications;
var cskSmartFavIcon = function(name, data){	

	require(['jquery'], function (JetCSKJQ) {

		var jq = JetCSKJQ; 

		//% Replace Browser Favorite Icon for Push Notification Alerts;

	    //% Get CSK FavIcon URL;
		var cskFavIconPN = getImageUrl('CSK_LOGO_FAVICON_PN');
		jq('head link[href*=CSK_LOGO_FAVICON]').attr('href', cskFavIconPN);

		var cskPos = document.title.indexOf(")");
		var cskLen = document.title.length;

 		if(typeof(PushMsg) != 'undefined'){

			var cskCount = PushMsg.Count + 1;
			//% Replace Page Title for Push Notification Alerts;
			if (cskPos != -1)
			{
				document.title = '(' + cskCount + ') ' + document.title.substring(cskPos+2, cskLen); 
			} else {
				document.title = '(' + cskCount + ') ' + document.title;
			}

		}
	});

};

// Subscribe to Push Notification Events;
// Listed obtained from PeopleTools > Push Notifications > Define Event Collections;
Subscribe("PRCSEVENTS", cskSmartFavIcon);
Subscribe("TRIGGERBUSINESSEVENT", cskSmartFavIcon);
Subscribe("SENDNOTE", cskSmartFavIcon);
Subscribe("PTPNPRCSEVENT", cskSmartFavIcon);

// Reset/Toggle FavIcon and Page Title;
// Called from PTPN_NOTIFICATION_MSG_JS > DoNotify Function (Customization);
var cskFavIconPNJS = function(){		

	require(['jquery'], function (JetCSKJQ) {

		var jq = JetCSKJQ; 

		//% Replace/Toggle Browser Favorite Icon;
	    //% Get CSK FavIcon URL;
		var cskFavIconToggle = getImageUrl('CSK_LOGO_FAVICON');
		jq('head link[href*=CSK_LOGO_FAVICON_PN]').attr('href', cskFavIconToggle);

		var cskPos = document.title.indexOf(")");
		var cskLen = document.title.length;

		if (cskPos != -1)
		{
			document.title = document.title.substring(cskPos+2, cskLen); 
		} 
	
	});

};