added breaks in querySpotAjaxRequest loops