use base.js to share common stuff
build with `make build`