[refactor] minimized commonjs syntax