anchor.diff:  Helper function to create a button for each JS Item
   ###
   create_button = (name) ->
  -  list_item = $(document.createElement('li'))
  +  list_item = $('<li>')
  +  list_item.attr('name', name)
     list_item.addClass 'list-group-item btn btn-default'
  -  list_item.append $(document.createTextNode(name))
  +  list_item.append name
   
     list_item.click ->
       toggle_active list_item
  
positive.code:     dataType: 'json',
      data: {
        item: {
          name: data.name,
          category_id: data.category_id
        }
      }
    }
  
negative.code: ###
  @save_new_item = ->
    # Get the parameters from the form
    item = {}
    $.each $('#new-item-form').serializeArray(), (_, field) ->
      item[field.name] = field.value
  
    if !item.name
      flash_error("Please enter a name for the item.", selector: '#new-item-errors')
      return
    if !item.category_id
      flash_error("Please choose a category for the item.", selector: '#new-item-errors')
      return
  
  