Fix #113 and allow users to cancel "Mark as draft"

Will not work in Safari, see
https://developer.mozilla.org/en-US/docs/Web/API/window.prompt?redirectl
ocale=en-US&redirectslug=DOM%2Fwindow.prompt#Notes