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
Merge pull request #2 from bilalq/master

Fix style inconsistencies & global leakage