Adding ajax call to RestX server to get JSON response.