amend search.js function with new javascript methods from activityfinder.js