Add tools/writemodel.js node tool for writing a model by name to its associated js file.