Carousel: Declare vars to prevent global leaks

I found 14 variables that were leaking into the global namespace because they were missing a `var` declaration. There were a couple cases where the declaration existed but had an accidental semicolon in the middle. This pull request adds the missing declarations and makes the first declaration a little easier to read.