apply the patch proposed for thesmart/jquery-scrollspy#10