Fix RGB function in JSç