add base-class.js