Where you have the "agsjs" directory versus the html file?For example, I have this setup[ATTACH=CONFIG]32869[/ATTACH]and in the html file I'm running (TOC_hide_node.html), I set the path to the TOC like this
<script>
var dojoConfig = {
packages: [
{
name: "agsjs",
location: location.pathname.replace(/\/[^/]+$/, "") + '../../agsjs'
}]
};
</script>