DRY js code by adding load_trip_from
Remove deprecated reload_trip and unused add_to_trip_at_index