editor.js: move templates to global templates var