cosmetic changes to be jhint friendly; fixed a invalid variable assignment for ratio normalization in getColorAt()