remove trailing whitespace
add support for displaying "function" objects
don't ignore brah
if no args are passed in, then `stdin` is the result

Makes this work as expected:

$ echo "{ foo: 'bar' }" | js"
{ foo: 'bar' }
use "json-stringify-safe" package