You might try to include the $(document).ready() in your script. Try this:
$script = '
<script type="text/javascript">
$(document).ready(function()
{...
|
Search:Type: Posts; User: gvinson89 Search: Search took 0.01 seconds.
Results 1 to 4 of 4
|
|