main.js

this js controls all the carousel