Refactoring JS dependencies and containers.