Fix syntax error in demand.js