AJAX to fetch categories and show categories