Modifying color tests to use RGB between 0 and 1, not 0 and 255

The docs for color indicate that setRGB et all take colors between 0 and
1, but the tests use 255 based values. Updating to reflect docs.

The unusual values were used to avoid floating point math errors.

Also added some minor things which fail in jshint