[IMP] Improved JS to maintain same color after changing pictogram