move util.js to base.js