Use body element when animating scroll in public page

In the public page the scroll container is the window instead of a div.
The $(window) object doesn't support animating the scroll property, so
the $('body') element is used instead.

Fixes https://github.com/owncloud/core/issues/11589

Please review @icewind1991 @MorrisJobke @schiesbn @jancborchardt