Fix IE issue with color names

* Added function colourNameToHex to fix an IE issue with color names