Fix carousel javascript