modal.js add functioning prev/next buttons