Deterministic finite acceptor simulation library for Javascript