fixed script tag issue, updated to EsriJS API 3.9