[Switch Access] Compile the menu panel Javascript code

Bug: None
Change-Id: I742dc48de34bd7131e2da3dc1001a7b09f9a5053
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1577593
Reviewed-by: Akihiro Ota <akihiroota@chromium.org>
Commit-Queue: Anastasia Helfinstein <anastasi@google.com>
Cr-Commit-Position: refs/heads/master@{#653757}
diff --git a/chrome/browser/resources/chromeos/switch_access/BUILD.gn b/chrome/browser/resources/chromeos/switch_access/BUILD.gn
index 24a2a83..911970a 100644
--- a/chrome/browser/resources/chromeos/switch_access/BUILD.gn
+++ b/chrome/browser/resources/chromeos/switch_access/BUILD.gn
@@ -163,6 +163,7 @@
     ":commands",
     ":key_event_handler",
     ":menu_manager",
+    ":menu_panel",
     ":menu_panel_interface",
     ":navigation_manager",
     ":options",
@@ -238,6 +239,12 @@
   ]
 }
 
+js_library("menu_panel") {
+  deps = [
+    ":switch_access_interface",
+  ]
+}
+
 js_library("menu_panel_interface") {
 }
 
diff --git a/chrome/browser/resources/chromeos/switch_access/menu_panel.js b/chrome/browser/resources/chromeos/switch_access/menu_panel.js
index b5fbb6d..dd4392e 100644
--- a/chrome/browser/resources/chromeos/switch_access/menu_panel.js
+++ b/chrome/browser/resources/chromeos/switch_access/menu_panel.js
@@ -41,7 +41,7 @@
 
   /**
    * Adds an event listener to the given button to send a message when clicked.
-   * @param {!HTMLElement} button
+   * @param {!Element} button
    * @private
    */
   setupButton_(button) {
@@ -81,7 +81,7 @@
    * |id|.
    * @param {string} id
    * @param {string} className
-   * @param {bool} shouldAdd
+   * @param {boolean} shouldAdd
    */
   updateClass_(id, className, shouldAdd) {
     const htmlNode = document.getElementById(id);