main.js work and styling