fixing categories.js