Refactored search in partial. Added simple typeahead functionality.
Made the found media items available in javascript. Added some custom layout to typeahead div.