A base class for JavaScript inheritance