clean-ups in AJAX request handler code generator