carousel is working in JavaScript