Fix syntax error in cases.js