Solved! Go to Solution.
I had to place the server name and then it worked.
Going further it looks for the following URLs and breaks, since our ArcGIS server is not connected to internet and we want it to run local.
http://services.arcgisonline.com/ArcGIS/rest/info?f=json
http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&callback=dojo.i...
http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServe...