GrubHub Inc's quarterly profit more than tripled as more people used the online food-delivery service to order takeout meals.