It's inappropriate to instantiate ActivityWindowFactory before Application.ready
Please move this back to activity_window_factory.js or do after Application is ready.