Please also remove the secure mode check before the confirm() call below this, and edit the comment as needed.