var express = require('express')
var app = express()

var TranslationIndex = require('./TranslationIndex.json');
var TranslationMap = require('./TranslationMap.json');
var VideoMap     = require('./VideoMap.json');

app.get('/translate.json', function (req, res) {
    var key = req.query.s;
    try {
        var engkey = TranslationIndex[key];
        var result = TranslationMap[engkey];
        //Inject english version
        result.en = engkey;
        res.json(result);
    } catch(err) {
        //Not found -> Empty result
        res.json({})
    }
})

app.get('/videos.json', function (req, res) {
    var key = req.query.id;
    try {
        var videos = VideoMap[key];
        res.json(result);
    } catch(err) {
        //Not found -> Empty result
        res.json({})
    }
})

var port = 7160
console.log("Starting server on port " + port)
app.listen(7160)

@@ -174,20 +174,16 @@
 ideoMap 
-    
 = requir
@@ -682,38 +682,38 @@
        res.json(
-result
+videos
 );%0A    %7D catch(e
@@ -746,32 +746,57 @@
 -%3E Empty result%0A
+        console.log(err)%0A
         res.json

Fix server