Add Model.js, change choosing logic.