Add new lib javascript-state-machine