small refactorings for the BioJS widget story