dart2js is for running in the browser.
dart:io will not convert to JS because the browser doesn't support this functionality (like stdout/stdin).
Do you want to run JS generated from Dart running on the Server using Rhino? Maybe you could integrate the Dart VM in your app and run Dart code without transpiling to JS.