A base class for Javascript