Added Javascript protection against data loss when writing an article and doing "next/previous page", Ctrl+W or close browser accidentally