Revert "Revert "rewrite the ajax to debug the parameters.""

This reverts commit 55ce35b21a0acd350d7debd5275eccb18d7d8750.