update base.js