Fix for IE8 bug #2

The problem seems to be that in IE8 the .attr('transform') call doesn't
return the transform for some reason. I've got around this by making a
dummy function that keeps a copy of the transform using .data().