Move getPage function from nessjs to ncl-connect