added foobar.js to conduct a few simple interactive tests
ordering of JSONProblemError attributes is rearranged a bit
fixed a bug, send-error now properly traces to console