fix js color update