Made Categories.js use a method that was provided by Category.js instead of relying on internal implementation