added main.js CRUD for week 4 miu.