var jstrans = function (path) {
    if (selector = document.querySelector('input[name=\"jstrans-value-for-' + path + '\"]')) {
        return selector.value;
    } else {
        var json = JSON.parse('%s');
        var keys = path.split('.');
        
        var value = json;
        
        for (var i in keys) {
            var key = keys[i];
            if (typeof value[key] === 'undefined') {
                return path;
            }
            value = value[key];
        }
        
        return value;
    }
}
var jstrans = function (path) {
    if (typeof path === 'undefined') {
        return null;
    }
    
    if (selector = document.querySelector('input[name=\"jstrans-value-for-' + path + '\"]')) {
        return selector.value;
    } else {
        var json = JSON.parse('%s');
        var keys = path.split('.');
        
        var value = json;
        
        for (var i in keys) {
            var key = keys[i];
            if (typeof value[key] === 'undefined') {
                return path;
            }
            value = value[key];
        }
        
        return value;
    }
}
Return null if path is not specified
Return null if path is not specified
