Refactor, cache form object in wiki-edit.js