Ajax return functions from trip_controllers.rb