Include parseOnLoad config parameter after the script include tag.
djConfig="parseOnLoad:true">
For some reasons if this is not worked try the below js code after dojo include tag.
<script type="text/javascript">
dojo.config.parseOnLoad=true;