angularjs addPlaylist function