Adding ability to refresh mode from observable on viewModel

`index.html` was updated to demonstrate the impact of the change. Now, the mode can be bound to a UI control and can change on the fly.