I think this occurs because you replace the prototype object that came with the function, which had a 'constructor' property, with a fresh object that has no 'constructor' property.