Calculator#add now can return both HTML and JSON based on .json suffix presence