De Bruijn Sequence Decoding due to J. Tuliani in Javascript