Update modules/ui/carousel.js

Thanks to Markus who found/fixed it (https://groups.google.com/forum/#!topic/themproject/Yy-cukekMCg)