Hacking the ArcGIS API for JavaScript Web Optimizer