pages/advanced: Use text input for method

Issue #312.
Refactor search-form-headings into advanced ns

Issue #312.
js/main: Trim input fields autocomplete suggestions
Merge branch 'issue/312'