rename dialog_js to index