html.js and category.js fixes (IMPORTANT)