add page navigation js