     mkfile true
   mkfile = (is_dir) ->
     current_list = window.selected_items.eq(0).find('ul.column')
-    anchor = $('<a />', {
-      class: 'file '+(if is_dir==true then 'dir' else 'not_dir')+' active new',
+    anchor = $ '<a />',
+      class: 'file '+(if is_dir==true then 'dir' else 'not_dir')+' active new'
       html: '<span class="icon"></span><span class="name"></span>'
-    })
     anchor.data('path', current_list.data('ls-path'))
     current_list.append($('<li />').append(anchor))
 

          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

    if x + $('#context_menu').outerWidth() > $(window).width()
      x = $(window).width() - $('#context_menu').outerWidth()
    y = e.pageY - 10
    $('#context_menu').show().css
      height: $('#menu').outerHeight() + 20
      top: e.pageY - 10
      left: x
      'z-index': 20
    if (y + $('#context_menu').height() > $(window).height())
      $('#context_menu').css
        top: $(window).height() - $('#context_menu').height()
    menu_items_before_clicked[type]()

  hide_context_menu = ->
