<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_jsfile_head(self, src: str) -> None: """Add JS file to load at this document's header."""

        self.head.appendChild(Script(src=src))