transformation function in js talking with transformation app in r. currently speaking different languages though...