old ecmascript inheritance