diff --git a/app/assets/javascripts/dashboard.js.coffee b/app/assets/javascripts/dashboard.js.coffee
index c2c28a504409045f16b7f08996cafd1d7ff24297..c7757540b31ec6a1249f2ece1c780d805be9d1d1 100644
--- a/app/assets/javascripts/dashboard.js.coffee
+++ b/app/assets/javascripts/dashboard.js.coffee
@@ -1,6 +1,6 @@
 @Dashboard =
   init: ->
-    $("#project-filter-form-field").unbind()
+    $("#project-filter-form-field").off('keyup')
     this.initSearch()
 
   initSearch: ->
diff --git a/app/assets/javascripts/projects_list.js.coffee b/app/assets/javascripts/projects_list.js.coffee
index 873495bfe7240029fd2145b51ab025b6341e972b..b4f5546a42f8955f744777d2495e5ea17d89be16 100644
--- a/app/assets/javascripts/projects_list.js.coffee
+++ b/app/assets/javascripts/projects_list.js.coffee
@@ -1,28 +1,29 @@
 class @ProjectsList
   constructor: ->
-    $("#project-filter-form-field").unbind()
+    $("#project-filter-form-field").off('keyup')
     $(".projects-list .js-expand").on 'click', (e) ->
       e.preventDefault()
       list = $(this).closest('.projects-list')
 
-    $("#filter_projects").keyup ->
-      ProjectsList.filter_results("#filter_projects")
-    $("#project-filter-form-field").keyup ->
-      ProjectsList.filter_results("#project-filter-form-field")
+    $("#filter_projects").on 'keyup', ->
+      ProjectsList.filter_results($("#filter_projects"))
+    $("#project-filter-form-field").on 'keyup', ->
+      ProjectsList.filter_results($("#project-filter-form-field"))
 
-  @filter_results: (element) ->
-    terms = $(element).val()
-    filterSelector = $(element).data('filter-selector') || 'span.filter-title'
+  @filter_results: ($element) ->
+    terms = $($element).val()
+    filterSelector = $($element).data('filter-selector') || 'span.filter-title'
 
-    if terms == "" || terms == undefined
+    if not terms
       $("ul.projects-list li").show()
       $('.gl-pagination').show()
     else
       $("ul.projects-list li").each (index) ->
-        name = $(this).find(filterSelector).text()
+        $this = $(this)
+        name = $this.find(filterSelector).text()
 
-        if name.toLowerCase().search(terms.toLowerCase()) == -1
-          $(this).hide()
+        if name.toLowerCase().indexOf(terms.toLowerCase()) == -1
+          $this.hide()
         else
-          $(this).show()
+          $this.show()
       $('.gl-pagination').hide()