minimal js bootstrapping code