Update menu dialog with full javascript