WIP fix(client): Only add `autocomplete=off` when in sync or to text fields acting as passwords.

fixes #1788
`jQuery` -> `$` is an unrelated change for consistency.
`append`->`html` ensures the container element is cleared between each test.