if(sessionStorage.getItem('extractVar')=='true'){
	var extractObj=JSON.parse(sessionStorage.getItem('extractVarObj'));
	if(null!=extractObj && undefined!=extractObj){
		var counter=0;
		for (var key in extractObj) {
			$('.list-group').append('<a href="#" class="list-group-item" customId=' + "summary_" +  counter + '><strong>Summary of ' +  key.substring(0,key.lastIndexOf("_smry")) + '</strong><br>' + extractObj[key] + '</a>');
			if($('.list-group-item[customId=' + "summary_" + counter + ']').text()=='Summary of ' + key.substring(0,key.lastIndexOf("_smry")))
				$('.list-group-item[customId=' + "summary_" + counter + ']').remove();
			counter++;
		}
	}
}
else{
for(i=0;i<sessionStorage.length;i++){
	if(sessionStorage.key(i).indexOf('_smry')<0){
	$('.list-group').append('<p class="list-group-item" customId=' + "summary_" +  i + '><strong>Summary of ' +  sessionStorage.key(i) + '</strong><br>' + sessionStorage.getItem(sessionStorage.key(i) + "_smry") + '</p>');
}
}
}

$('#searchSummaries').click(function(e){
	var obj = null;
	if(!$.trim($("#SearchBox").val())){
		obj=searchWithKeywords('');
	}
	else{
		obj=searchWithKeywords($("#SearchBox").val());
	}

	$('.list-group').empty();
	var i=0;
	for (var key in obj) {
		$('.list-group').append('<a class="list-group-item" customId=' + "summary_" +  i + '><strong>Summary of ' +  key.substring(0,key.lastIndexOf("_smry")) + '</strong><br>' + obj[key] + '</a>');
		if($('.list-group-item[customId=' + "summary_" + i + ']').text()=='Summary of ' + key.substring(0,key.lastIndexOf("_smry")))
			$('.list-group-item[customId=' + "summary_" + i + ']').remove();
		i++;
	}

});

document.getElementById("SearchBox")
    .addEventListener("keyup", function(event) {
    event.preventDefault();
    if (event.keyCode == 13) {
        document.getElementById("searchSummaries").click();
    }
});

@@ -238,17 +238,17 @@
 ppend('%3C
-a
+p
  href=%22#
@@ -415,25 +415,25 @@
 j%5Bkey%5D + '%3C/
-a
+p
 %3E');%0A%09%09%09if($
@@ -1251,17 +1251,17 @@
 ppend('%3C
-a
+p
  class=%22
@@ -1410,17 +1410,17 @@
 y%5D + '%3C/
-a
+p
 %3E');%0A%09%09i

fix issue with text colour changing in Summary