Add scripts to handle infinte scroll