an class="kind">def</span></span> <span class="symbol"><span class="name">jsToOpt</span><span class="tparams">[<span name="I">I</span>, <span name="F">F<span class="tparams">[<span name="_">_</span>]</span></span>]</span><span class="params">(<span name="name">name: <span name="scala.Predef.String" class="extype">String</span></span>, <span name="header">header: <span name="scala.Predef.String" class="extype">String</span> = <span class="symbol">"intro"</span></span>)</span><span class="params">(<span name=