moved ajax call into freebase directory