Port cilantro/ui level CoffeeScript file to JavaScript

Put the `var` here rather than declaring it above.