javascript sample implementation for a lazy loading product list