complete the function of grabing the noteText in html.