Remove `confirm` statement

JavaScript pattern

JavaScript’s confirm function is widely considered to be obtrusive as UI elements and should be replaced by a more appropriate custom UI implementation.

Remove alert, confirm and prompt

BEFORE
confirm('Are you sure?');
customConfirm('Are you sure?');
AFTER
customConfirm('Are you sure?');