added router, view, model and updated main.js