Update StatsRetrievalQuery.php

Now has the AJAX working correctly.