Minor update on example index.html to support newer `stateMachine.create()` api