boot.js: some refactorings in briks