BackendJS refactoring continued