public static function requireLoad(Array $requirements, Array $alias, $jsCode) {
    return sprintf(
      "requireLoad([%s], function (main%s) { // main is unshifted automatically\n  %s\n});",
      self::buildRequirements($requirements),
      count($alias) > 0 ? ', '.implode(', ', $alias) : '',
      self::convertJSCode($jsCode)
    );
  }