Move JS/jQuery for tag selection to search.js, out of the view

+  Note, because of turbolinks, the js/jQuery needs to be wrapped
   in a function and then called in two ways: (1) with a
   document.ready and a document.on page:load. See the turbolinks-
   js documentation.