Split models.js and views.js into separate files