add prettify
modify document AMDQuery