Moved some logic out of app/search.js and into the view
Consolidate model code into base class