Fix two jshint warnings

Two warnings
47	The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.
71	Missing semicolon.