I don't understand
The only problem now is that the form field input[text] refreshes the page on enter
by 'enter' do you mean the 'enter key'? OR clicking into the input field to type? Neither one causes a refresh for me.
If you want to have the 'enter key' run your ajax you have to put a listener in your JS to monitor for this.