Update model_factory.js

method set can return self for shorthand model modifications use by another method