make JSON::XS the prime method of turning things into json/js; bypass the very old hand json code for JSON::XS; likely fixes #90