     contains = false
 
     $.each data, (key, value) =>
-    
+
       if _.isObject(value) or _.isArray(value)
          contains = @JSONcontains value, query
          return !contains # if contains then break else continue

        if value.indexOf(query) > -1
          contains = true
          return false # break
    
    return contains


  generateHTML : (element) ->
    
    return @template({controllers : jsRoutes.controllers, element : element})




  addSearchboxListener : (searchboxElement) ->

    lastQuery = null
    currentQuery = null

