So sorry, I accidentally didn't copy the old one, and instead put in somebody else's which was showdown I was playing with. It doesn't seem you can go back to a published map to edit/ get the code so I deleted the post.
You can retrieve the code by clicking the yeloow "Published" button, next to save. Perhaps I should make that more clear :)