Implementing page block logic with knockout.js