Inline confirmation dialogs in Javascript