JavaScript 4 ArcGIs Server inv