Why not use the same logic for extracting trackName?
var trackName = $(SONG_DETAILS_DOM).children()[0].text()

(I did not get a chance to test this but something to this effect?)