Port configure script to Node, step 1: compile JS files.

This is step 1 of porting our configure script to Node.  Under this system,
download of dependencies will be managed either by npm or Bower.  The end goal
is to simplify our build and make future maintenance easier.

Progress on #7.
Done