Moved some color related methods from index.html to colorutils.js