Group playlists in nodejs