For loop iterating over prototype properties in _getDataToSend

use hasOwnProperty(i)
Merge pull request #1 from joegreen0991/master

For loop iterating over prototype properties in _getDataToSend