model oop

fixed flat.js
?