Convert to ES5 inheritance pattern