Modified search to return locally stored search results by AJAX and API results by websocket