enhance and refactor lightbox_dialog.js, rename to ajax_modal.js