fix js error in cloudcare