var showterm=function(term){
	return "<b>"+term.entry+"("+term.page+")"+"</b> : <br/>"+"藏文解釋 : "+term.tdefinition+"<br/> 中文解釋 : "+term.cdefinition;
}
var showentry=function(term){
	return "<div onClick='showdetails(this.innerHTML)'>"+term.entry+"("+term.page+")</div>";
}

var doentrySearch=function(tofind){
	var arr=entrySearch(tofind);
	document.getElementById("display1").innerHTML=arr.map(showentry).join("<br/>");
}

var showdetails=function(tofind){
	var arr=entrySearch(tofind.replace(/\(\d+.\d+\)/,""));
	document.getElementById("display2").innerHTML=arr.map(showterm).join("<br/>");
}
@@ -1,16 +1,17 @@
+%0A
 var showterm=fun
@@ -166,32 +166,71 @@
 function(term)%7B%0A
+%09var str = JSON.stringify(term,%22%22,%22%22);%0A
 %09return %22%3Cdiv on
@@ -252,22 +252,15 @@
 ils(
-this.innerHTML
+%22+str+%22
 )'%3E%22
@@ -476,32 +476,34 @@
 ction(tofind)%7B%0A%09
+//
 var arr=entrySea
@@ -592,38 +592,23 @@
 TML=
-arr.map(showterm).join(%22%3Cbr/%3E%22
+showterm(tofind
 );%0A%7D

change ui.js, stringify the finded object