only show prev/next if more than one track
js refactoring.