     clicked_language = $(this).data().language
 
     unless clicked_language?
-      $('#languages li').removeClass('disabled')
-      $('#projects').html(projects.find('.project'))
-      projects = $('#projects').clone()
-      $('#projects').css('height', 'auto')
+      resetLanguage()
       return
 
     unless e.ctrlKey or e.metaKey


    $('#noprojects').hide()

    if languages.length > 0
      $('#languages li')
        .addClass('disabled')
        .find($.map(languages, (l) -> "a[data-language=#{l}]").join(','))

      $('#projects').quicksand $(projects).find(".#{languages.join(', .')}"), duration: 0, ->
        if $('#projects .project:visible').length == 0
          $('#noprojects').show()

  resetLanguage = ->
      $('#languages li').removeClass('disabled')
      $('#projects').html(projects.find('.project'))
      projects = $('#projects').clone()
      $('#projects').css('height', 'auto')
