Re-implemented application logic to use KnockoutJS.