     return
 
 
+  # Get group-items from local storage
+  #
   chrome.storage.local.get 'group_items': [], (items) ->
     groupItems = items.group_items
 



$ ->
  $('#clean-items').click (e)->
    chrome.storage.local.remove 'group_items', ->
      $('.item').remove()

    e.preventDefault()


  $('#add-item').click (e)->
    $input = $('<input />', {type: 'text', name: 'pageUrl', placeholder: 'Ссылка на группу'})
    $('<div />', {class: 'item'})
      .append($input)

    e.preventDefault()


  # Show auth button if user is not authorized
  #
  chrome.storage.local.get 'vkaccess_token': {}, (items) ->
    if items.vkaccess_token.length is undefined
      $('.auth-actions').show()
