Lightweight library for word decoding in pure javascript