Fixed JS bug with color-picker.js

Signed-off-by: Elliot Condon <e@elliotcondon.com>