Refactoring error msg on ajax fail

* using JS template instead of wretched string
Adding JS template for error message on trip#show
Remove merge conflict duplications
Merge pull request #147 from LightningLord/refactor-search-js

Refactor search js: using template instead of string