I've described a technique for running javascript files withing Eclipse using Rhino and the external tools functionality in Eclipse in my blog -> martin-toshev ....