(CS) Fix JS compile error