w2v-server: get parameters with javascript
diff --git a/templates/index.html.ep b/templates/index.html.ep
index 72066ed..c841262 100644
--- a/templates/index.html.ep
+++ b/templates/index.html.ep
@@ -14,16 +14,10 @@
 				integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
 				crossorigin="anonymous"></script>
     <script>
+		 var urlParams = new URLSearchParams(window.location.search);
+
      $('#firstable').hide();
 		 $(document).ready(function() {
-				 $("#xxxtabs").tabs( {
-						 "show": function(event, ui) {
-								 var oTable = $('div.dataTables_scrollBody>table.display', ui.panel).dataTable();
-								 if ( oTable.length > 0 ) {
-										 oTable.fnAdjustColumnSizing();
-								 }
-						 }
-				 } );
 
 				 $("input").bind("keydown", function(event) {
 						 // track enter key
@@ -126,7 +120,7 @@
 
 		 $(function(){
 				 $("td.collocator").click(function(){
-						 queryKorAPCII(this.textContent + " /w5 <%= $word %>");
+						 queryKorAPCII(this.textContent + " /w5 " + urlParams.get('word'));
 				 });
 		 });