Solves https://github.com/creynders/jsfsa/issues/5. See README.md for documentation of the new feature "dynamic transitions"