A convenient way to emulate class/inheritance in Javascript.