url hash and state fixes, added options into demo.html