Converted to KnockoutJS