Fix carousel widget and tests to work on IE8