Switch to json to retrieve search results. Use angular as an example implementation.