Class for Javascript, manipulate colors