Finished meta data endpoint support and dump version number

Change-Id: I3b2fd0485a36978125b7d8f0353bfc651f501a5a
diff --git a/dev/js/src/match/info.js b/dev/js/src/match/info.js
index ed8facc..f30287b 100644
--- a/dev/js/src/match/info.js
+++ b/dev/js/src/match/info.js
@@ -151,10 +151,13 @@
      * Receive meta data from server.
      */
     getMetaData : function (cb) {
+
+      var match = this._match;
+
       try {
         KorAP.API.getTextInfo(
-          this._match, {}, function (textResponse) {
-          
+          match, {}, function (textResponse) {
+            
             if (textResponse === undefined) {
               cb(null);
               return;
@@ -175,7 +178,7 @@
 
             // Add metainfo to matchview
             cb(matchMetaClass.create(
-              this._match, fields
+              match, fields
             ));
           }
         );
@@ -345,6 +348,10 @@
       var that = this;
 
       this.getMetaData(function (meta) {
+
+        if (meta === null)
+          return;
+
         // Load data
         metaTable.classList.remove('loading');
 
diff --git a/dev/js/src/match/meta.js b/dev/js/src/match/meta.js
index 05e1f3b..2edae65 100644
--- a/dev/js/src/match/meta.js
+++ b/dev/js/src/match/meta.js
@@ -1,30 +1,5 @@
 define(['util'], function () {
 
-  /*
-  author, editor title, subTitle textSigle
-  in corpusAuthor (corpusEditor), corpusTitle, corpusSubTitle, corpusSigle
-  in docAuthor    (docEditor),    docTitle,    docSubTitle,    docSigle
-  publisher
-  reference
-  creationDate
-  foundries
-  keywords
-  textClass
-  textColumn
-  textDomain
-  textType
-  textTypeArt
-  textTypeRef
-  language
-  license
-  pages
-  pubDate
-  layerInfo
-  tokenSource
-  biblEditionStatement
-  fileEditionStatement
-*/
-
   // Localization values
   const loc   = KorAP.Locale;
   loc.METADATA = loc.METADATA || 'Metadata';