The following diagram describes the process flow of the JavaScript used by Federated Experience Manager (FXM):