added JS and infinite scroll