Refactored search.js factories and controllers, Updated references.js tab shown reference