rem: htmlToKeep = document.getElementById("memberForm:max").innerHTML.split("/")[1]; document.getElementById("memberForm:max").innerHTML = currentNum + "/" + htmlToKeep; 
add: if(document.getElementById("memberForm:max").innerHTML.indexOf("/") == -1) { document.getElementById("memberForm:max").innerHTML = currentNum; } else { htmlToKeep = document.getElementById("memberForm:max").innerHTML.split("/")[1]; document.getElementById("memberForm:max").innerHTML = currentNum + "/" + htmlToKeep; } 
context: function updateTotalMembers() {    if(document.getElementById("memberForm:max")) {	    var currentNum = document.getElementById("memberForm:selectedUsers").length;	    htmlToKeep = document.getElementById("memberForm:max").innerHTML.split("/")[1];        document.getElementById("memberForm:max").innerHTML = currentNum + "/" + htmlToKeep;    }}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1235/166d87a57cdba9b6cab40c4e4657ddf799a7a5db/sections.js/buggy/sections/sections-app/src/webapp/common/js/sections.js