Simple OOP inheritance implementation for JavaScript