abstract common functionality to helpers.js.coffee
abstract local search for any type of resource