pull svg.transform out of the self-executing function