fix parens in mode.js