The prototype chain and property shadowing