Fix a jshint warning

One warning
59	The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.