Thanks for your replies, Jeff and Ralph.
Ralph, I have already tried this method, the dynamic map displays on the page, however I wanted to amend the basemap property in the map object, so that instead of using ArcGISOnline pre-defined maps, my dynamic map services are used as a basemap.
Jeff, I will have a look at the class definitions and see if I can make sense of it.