See http://stackoverflow.com/a/8783528/797376

Also there is no way to protect from such things by evil library 100% in JavaScript. Even Object.prototype is modifiable. If the user suffers from using that evil libs, it's his/her fault. Any lib can't ensure it will work correctly in that situation.