Refactored controller for product search. Removed obsolete js file.