first pass at standalone hashname javascript util module, replete with tests, needs docs yet