Update statemachine/statemachine.js

Typo