Fix syntax error in common.js