Trying to add search options

Need improvments on jQuery selectors and search method. Also move
javascript to correct Rails location.