Continuing a thought: JS-level util.errnoException

I noticed new stubbed lib/ code similar to my needs; researched and
then started this change;

**two typos fixed**, stub consolidated and moved to util.js and expanded;
usage areas indicated; test file started