anchor.diff:  
   <script>
   	$(function() {
  +
   		$("#addsynonym").click(function() {
   			$("#dialog").dialog({
   				width : 'auto'
   			});
   			$("#synonymsDialogTable").show();
   		});
  +
  +		$("#name")
  +				.on(
  +						"change paste",
  +						function() {
  +							$
  +									.ajax({
  +										type : "GET",
  +										url : "${pageContext.servletContext.contextPath}/getExistingConcepts",
  +										data : {
  +											conceptname : $(this).val()
  +										},
  +										success : function(response) {
  +											if (response.length > 0) {
  +												var text = "Following concepts have the same name : \n";
  +												var len = response.length;
  +												for (var i = 0; i < len; i++) {
  +													text += (response[i].word
  +															+ " - "
  +															+ response[i].id + "\n");
  +												}
  +												$("#warning").show();
  +												$('#warning').prop('title',
  +														text);
  +											} else {
  +												$("#warning").hide();
  +												$('#warning').prop('title', '');
  +											}
  +										}
  +									});
  +						});
   	});
   
   	$(document).ready(definedatatable);
  
positive.code: 	<table>
  		<tr>
  			<td>Concept</td>
  			<td><input type="text" name="name" id="name"></td>
  		</tr>
  		<tr>
  			<td>POS</td>
  
negative.code: 						}
  						html += '</tbody></table>';
  						$("#addedSynonyms").html(html);
  					}
  				});
  	};
  