fix 'require' on nodejs runtime