base tutorial changes
troia.js: fetching cost matrix