           fields: 'items(id,snippet/publishedAt,snippet/resourceId),nextPageToken'
         request.execute (response) ->
           if !response.result? then return console.debug response
-          response.result.items.forEach (item) -> 
+          response.result.items.forEach (item) ->
             if item.snippet.resourceId.kind == 'youtube#video'
               videoId = item.snippet.resourceId.videoId
               youtubePlaylistItems[videoId] =

      runSync = =>
        remainingCount++
        $("#plugmixer-playlist-#{plugPlaylistId}")
          .children('.plugmixer-playlist-syncinfo').text "#{remainingCount}/#{totalItemCount}" 

        if media.length <= 0 && Object.keys(youtubePlaylistItems).length <= 0
          $('.plugmixer-playlist').removeClass('plugmixer-playlist-syncing')

          else
            process()
            runSync()

      process = =>
        videoIds = Object.keys(youtubePlaylistItems)
        media = media.filter (m) ->
