ArcGIS API for JavaScript: InteractiveMapper/BasemapMask (MapServer)
Built using the ArcGIS API for JavaScript