Function for setting colors.
fix jshint warnings