change categories.js $ to jQuery