$(function(){ VK.init({ apiId: 2335068, nameTransportPath: "/demo/xd_receiver.html" }); }) function loadTracksData(query, callback) { VK.Api.call('audio.search', {q:query}, function(r){ callback(r.response[1].url); }) }