remove unnecessary immediate functions; JSLint 'node:true' editor-friendly