#376: ajax_data.js, add 'if ( flag_ajax )' around 'ajax()'