add the infinite scrolling js to html file