Fix some jshint warnings

Because __proto__ has been revived in ES6, I kept it in.

Four warnings
68	The '__proto__' property is deprecated.
73	Use '!==' to compare with '0'.
196	Use '!==' to compare with '0'.
191	The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.