ArcGIS API for JavaScript: Hosted/PolygonTest (FeatureServer)
Built using the ArcGIS API for JavaScript