cleanup unused vars in base.js