moved model.js out of models/