Updated transform to work in other browsers