fix syntax errors and a few other nits in labcolor.js