'require' support for method script