JavaScriptを外部ファイルに格納する

<head>
  <script src="HelloWorld.js" type="text/javascript"></script>
</head>