Support brew for installing the js tools

Some developers like me hack on zuul on a mac. Support for installing
the js tooling using brew is quite trivial.

Change-Id: Ia5b68dbf80347adcc0fdf94c2d9f0685f32c8cd6
diff --git a/tools/install-js-tools.sh b/tools/install-js-tools.sh
index 01d8854..a2a77ca 100755
--- a/tools/install-js-tools.sh
+++ b/tools/install-js-tools.sh
@@ -28,8 +28,12 @@
     sudo DEBIAN_FRONTEND=noninteractive \
         apt-get -q --option "Dpkg::Options::=--force-confold" --assume-yes \
         install nodejs yarn
-else
+elif type yum; then
     sudo curl https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
     sudo $(dirname $0)/install-js-repos-rpm.sh
     sudo yum -y install nodejs yarn
+elif type brew; then
+    brew install nodejs yarn
+else
+    echo "Unsupported platform"
 fi