JavaScript library for working with automata and grammars for regular and context-free languages