If I understand you, you want to use AJAX to modify the code
in the CFmodule block. The AJAX code is operating in the browser
but the CFML code is executed on the server and is replaced by
whatever code is included into the page by the cfmodule tag. That
is, that block of code no longer exists when the page is delivered
to the browser.
You would need to look at the page source to see what code is
there that can be accessed by the AJAX javascript.