js: submit search query on enter; init page=1 on search