js: bob: registry pattern