Thanks Nitin,
I use iOS trails app to record the gpx files. Get rid of some of the tags to make the fiel a little smaller.
The code is not published anywhere, but should be easy enough to get, along with the maps.html there is a stylesheet and a javascript file. BUT I am not a developer, I just mess about. I can put it on github if that would be useful?