fixing json ajax call