Thanks Robert, this is correct and easy to do but I'm wondering about something else. What I'd like to do is host an existing app created with the Javascript API in ArcGIS Online. While, if I understand you correctly, you suggest I create the same map again using ArcGIS Online.