add JS function for setting a playlist's assigned groups