Fix inherits() for older browsers