Just found the [V8](http://cran.r-project.org/web/packages/V8/vignettes/v8_intro.html) package that could run javascript code inside R.
Just found the V8 package that could run javascript code inside R.