Johns Reig's fork of his simple class inheritance written in javascript