added commented code for converting score to rgb client side