Use prototype for tinycolor objects
Tweak indent
Make code clearer