use `with (stdin)`

makes this work:

$ echo "{ \"foo\": \"bar\" }" | ./bin/js foo
bar