refactor search results

I refactored some code so both the search results and recommendation view could use the "clicked" function.  Moved the animation code to a service (it should be in a directive but haven't figured that out).  Also reformatted the search results view - it still needs work but the text is no longer overlapping the images, and the images are smaller.