Wrap forin loop with if statment to filter unwanted properties from the prototype object.