model.js by template engine