js composer refactoring critical