It looks like a call to $(document).ready is called before everything loads. You can try to put it in another way and do something like this:
At the end of your html (last line), make this call:
<script type="text/javascript">webpageReady();</script>
Then change the function from $(document).ready to webpageReady() . This ensures that everything is loaded before calling $('body').facebookTrafficPop .
Also make sure the script is displayed in head
source share