refactoring
More model.js refactoring