js changes for color properties