added definition of elementsPerPage to index.html