scroll if needed after replacing forms HTML. Fixes #636