There's a [pull request](https://github.com/jakesgordon/javascript-state-machine/pull/51) for this feature. The main issue will be to actually get the dot file from the browser.