cleanup: move all non-trivial function definitions out of return object definition
cleanup: move all non-trivial function definitions out of return object definition

fbennett/csl-editor,adam3smith/csl-editor,adam3smith/csl-editor,adam3smith/csl-editor,citation-style-editor/csl-editor,citation-style-editor/csl-editor,citation-style-language/csl-editor,citation-style-language/csl-editor,citation-style-language/csl-editor,fbennett/csl-editor,citation-style-editor/csl-editor