Wikipedia Viewer assistance

I’m working on the wikipedia viewer right now. I was wondering if someone knew how to help with a problem I’ve run into that has something to do with the page reloading when an AJAX request is made. It happens every time I hit enter to submit the text in the input field. I’m using jquery to display the api info, but the page keeps refreshing and it disappears right away. Any thoughts as to what’s going on here?

I figured it out! Forms automatically do a page refresh, so I had to use e.preventDefault in my JS.