code: func makeJS(doWebUI, doPublisher bool) error {
  	if err := buildGopherjs(); err != nil {
  		return fmt.Errorf("error building gopherjs: %v", err)
  	}
  
  	if doPublisher {
  		if err := genPublisherJS(); err != nil {
  			return err
  		}
  	}
  	if doWebUI {
  		if err := genWebUIJS(); err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // makeJS builds and runs the gopherjs command on perkeep.org/app/publisher/js
  // and perkeep.org/server/perkeepd/ui/goui