Update base.js

reference this.attr