      var q = $("#search-text").val();
        console.log(q);

        if (q.length > 0) {
            var url = '/api/analysis/search';
            $.getJSON(url, {query: q, results: 30}, function (data) {
                console.log(data);
                for (var i = 0; i < data.length; i++) {
                    data[i].id = data[i].id;
                }
                listTracks('#search-list', data);
            });
        }
    }


    function init() {
        document.ondblclick = function Doubl