Minor refactoring
Switching to Knockout as js library for the example