Fix style inconsistencies & global leaks

Semi-colon usage was inconsistent. In the `pickHue` function, `hue` was
not declared as a var, so it was leaking into the global scope. The same
was true of `color` in the `getColorInfo` function.
Remove trailing whitespace