beforeunload i18n, codemirror loader skeleton