<p>How do I get a list of domain user accounts with win32 api?  </p>

<p>In particular, I can't get this list when the computer is not the domain controller.  Instead it is a member of the domain. </p>

If the element doesn't exist in the DOM, the search will fail to find it and the action won't be applied.   If you can't do it in the $(document).ready() function, you might want to try putting the code after the element being referenced.  I believe this will work.
```
```
<body>
   <div id='topStories'></div>
   <script type='text/javascript'>
     $('div#topStories').addClass('active');
   </script>
</body>
```
```
If you need to add the class to the body, I would definitely use $(document).ready().