Update CompareQuery.php

added ajaxCompareQuery