Converting NFA to DFA ,JavaScript Library