updated controllers/main.js spec