Working ajax trip planner