Model must be loaded before router. Fixed typo in modelsposts.js.