Javascript object for manipulating color