Continue moving from modal dialogs to js.