Refactored env_manager.js - Loading environment on app launch