Update state-machine.js

fix
Merge pull request #1 from Okotetto/patch-1

Update state-machine.js
Update router.js
Update cache.js
Update state-machine.js
Update router.js
Update README.md
Update state-machine.js