enhance singlepage pagination with js