A base class for JavaScript