New js for categories, JSON requests for Add, Edit