Update esgmBase.js