Knockout example refactor