updated search.js with the tracks function parser