Separation of relative transform code into RelativeTransform.js