inheritance in old, plain js