added javascript-state-machine dependency