Ajax implementation query assistant