adding texttocolor and white or black javascript, not using gem for now