fix scrollbar: use angular $window selector

Before, we use a plain text 'window' selector, but this selection doesn't work. The new selector fix the issue.