           dir_count += 1
         else
           type = "not_dir"
-        anchor = $('<a />', {
-          class: 'file '+type,
-          href: '/open'+path+encodeURIComponent(b.name),
+        anchor = $ '<a />',
+          class: 'file '+type
+          href: '/open'+path+encodeURIComponent(b.name)
           html: '<span class="icon"></span><span class="name">'+b.name+'</span>'
-        })
         anchor.data('path', path+b.name)
         column_element.append($('<li />').append(anchor))
         file_count += 1

          anchor.addClass('active')
          if anchor.position().top > column_height - 20 # scroll to visible area
              should_scroll_to = anchor.position().top - column_height / 2
      column_element.slimScroll({ height: window.column_height, scrollTo: should_scroll_to })
      update_footer file_count, dir_count
    .error -> # error getting ls json
      update_footer -1

  update_current_path_and_title '/'

  window.error_msgs = [
    "Fail to open this folder."                # -1
    "Fail to move this file to trash."         # -2
    "Fail to complete the undo request."       # -3
    "Fail to rename this file."                # -4
    "Fail to create new directory/file."       # -5
  ]

  update_footer = (number_of_files, number_of_dirs) ->
