Revert "w2v-server: generate tsne-map from js variables"

This reverts commit ff5cad5d3db388d1514aa99f8f91354063873952.
diff --git a/templates/index.html.ep b/templates/index.html.ep
index f4765a2..59514fd 100644
--- a/templates/index.html.ep
+++ b/templates/index.html.ep
@@ -753,21 +753,8 @@
 							 % use Mojo::ByteStream 'b';
 							 % my $urlprefix = url_with->query([word=>'']);
 							 $(window).load(function() {
-								 var result = <%= b(Mojo::JSON::to_json($lists)) %>;
-                 var nvecs = [],
-                     nwords = [],
-                     nranks = [],
-                     nmarked = [];
-                 for(var i = 0; i < result.length; i++) {
-                   nwords = nwords.concat(result[i].map(function(a){return a.word;}));
-                   nvecs = nvecs.concat(result[i].map(function(a){return a.vector;}));
-                   nranks = nranks.concat(result[i].map(function(a){return a.rank;}));
-                   nmarked = nmarked.concat(result[i].map(function(a){return a.marked;}));
-                 }
-                 var urlprefix =  new URLSearchParams(window.location.search);
-                 urlprefix.set("word","");
-                 showMap({target: " "+urlParams.get('word')+" ", mergedEnd: 0, words: nwords, vecs: nvecs, ranks: nranks, marked: nmarked, urlprefix: "?"+urlprefix} );
-                 //								 showMap(<%= b(Mojo::JSON::to_json({target => " $word ", mergedEnd=> $mergedEnd, words => \@words, vecs => \@vecs, ranks => \@ranks, marked => \@marked, urlprefix => "?"+$urlprefix})); %>);
+								 var vecs = <%= b(Mojo::JSON::to_json($lists->[0])) %>;
+								 showMap(<%= b(Mojo::JSON::to_json({target => " $word ", mergedEnd=> $mergedEnd, words => \@words, vecs => \@vecs, ranks => \@ranks, marked => \@marked, urlprefix => $urlprefix})); %>);
 							 });
 							</script>
 						  <div id="second">