Refactored main.js
Refactored css file