Update carousel.js

first attempt to add unit test for the carousel data-duration attribute