(require("view/view/ViewMode"))() Need to pass along the pub-sub pattern through view to specific viewModes. The views attach to these view states. Source: view/view/ViewMode.js, line 9