Fix two jshint warnings

Because __proto__ is revived in ES6, I've kept it.

Three warnings
23	The '__proto__' property is deprecated.
79	The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
102	The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.