js: bugfix: alerts bar automatically hides after window resize, fixes #5