mode.js: remove unnecessary params argument