add comments to sort_categories.js
move the category context from session to URL