Set Timelines controller to respond with json objects.