Changed ajax call to json