add ajax rpc option for query system