Removed code duplication for JsTransform setup