Simple Base Class for JavaScript inheritance