A browser based “shell”, seems kind of like JSFiddle or Canvas Scratchpad? Might be good to check out…
There is also this Java based Rhino shell from MDN. hmm, very old, Java based implementation of JS, probably not worth spending time on…
A bunch of options here, node.js and windows scripting host seem most promising (since most of the answers are for OSX)