Working ajax post for categories