Preventing writing to prototype chain