Playlist: JavaScript debug

fix JS bug if current track is first track