ArcGIS API for JavaScript: ElevationContourLines (MapServer)
Built using the ArcGIS API for JavaScript