Assign the constuctor property when overwriting prototype object