Whenever I am adding the following code for lazy scrolling to my index.xhtml I am getting an exception



<script type="text/javascript">

$(document).ready(function(){
...