Updated the index.html in docs

Updated the docs with demo of how to configure the stateManager and fixes #4.