anchor.diff:  	});
   });
   
  -// This needs to be after profilesList is declared
   function getSelectedProfile(profilesList) {
   	var oid = document.getElementById('profileOid');
  -	var prfIdx = profilesList.map(function(elem) { return elem.oid; }).indexOf(oid.options[oid.selectedIndex].value);
  -	return profilesList[prfIdx];
  +    currentProfileIndex = profilesList.map(function(elem) { return elem.oid; }).indexOf(oid.options[oid.selectedIndex].value);
  +	return profilesList[currentProfileIndex];
   }
   
   </script>
  
positive.code: <script type="text/javascript"> 
  <!-- JQuery Section: ANNOTATIONS HISTORY (VIA AJAX) JAVASCRIPT -->
  
  //json array of images representing the enabled action buttons
  var enabled_buttons = {
  		"archive":			'images/multi-archive-enabled.gif',
  
negative.code: 					<tr>
  						<td colspan="9">
  							<div id="editorDiv">
  <textarea id="h3RawProfile" name="h3RawProfile" form="profileoverrides"/>
  <c:out value="${profileCommand.h3RawProfile}"/>
  </textarea>
  							</div>
  							<script>
  								codeMirrorInstance = CodeMirror.fromTextArea(document.getElementById("h3RawProfile"),
  