Fix some jshint warnings

Because __proto__ has been revived in ES6, I'm keeping it.

Ten warnings
32	The '__proto__' property is deprecated.
64	Use '===' to compare with '0'.
97	Use '===' to compare with '0'.
107	The '__proto__' property is deprecated.
123	The '__proto__' property is deprecated.
139	The '__proto__' property is deprecated.
150	Missing semicolon.
157	The '__proto__' property is deprecated.
169	The '__proto__' property is deprecated.
272	The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.