Update main.js with animation on scroll