I looked everywhere for the answer to the simple question: "How do I get terminal access to a javascript interpreter" and the answer was half-way down a stack overflow post hidden in a comment on a comment, so here you go:
$ sudo apt-get install libmozjs-24-bin
$ sudo ln -sf /usr/bin/js24 /usr/bin/js
This post also
on dreamwidth (
comments)