Test JS confirmation prompt