added stuff for categories.js