ko.register pattern