Cleans up search.html

Moves search rides function into ride.js from view.