Use objects for xocolor entries

It's nicer to be able to access the color as properties
and it works around a bug with js-beautify

https://github.com/einars/js-beautify/issues/273