fixed lack of pagination within js