Boot js refactorings