refactor: implementation of transpiling from JS to ruby instead of AST walking