var tracklist = [{title: "blabla", mp3: "url"} ………];
tracklist.push(track);
form.searchParent = function(submit) {
var currentParent = submit.parentNode;
if(currentParent.localName === "form") {
// Родительский элемент
return currentParent;
}
else {
// Продолжаем поиск
return form.searchParent(currentParent);
}
};