I installed the jquery pin it button plugin for my Wordpress site and it was working until I put the following code into the header:

<script type="text/javascript">
$(window).scroll(function() {...