Load categories using ajax calls for tree view