Calling `json` sets the appropriate `Content-Type`, so this line isn't needed.

Overall though, this is pretty nice! I like that xhr requests get handled cleanly here, and the route method just has to think about rendering.