By default, the button is going to submit the form and post it. You'll want to prevent this behavior in jQuery with preventDefault()
:
$("#button1").click(function (event) {
event.preventDefault();
... etc ...
});
Preventing the default behavior of the click event passed by jQuery into your function should make it behave as expected.