minor clean up to categories.js