added more debugging code to modal_ajax.js