changed $ to jQuery in categories.js