Create CardBase.js