Added .slice() to the yData to get a deep copy of the array
Merge pull request #2 from d-nation/yData-fix

Added .slice() to the yData to get a deep copy of the array. Closes #1.