little bug fix and linting

Using ColorPicker.prototype.saveAsBackground needs some update of
variables (in preRenderAll()) to render the WGCA bar right and
calculating all color values correct…
Added cookie support for color memory