Refactored code to use the new /categories/#.json path