js: bob: reorganize