Fixes issue with JavaScript color table