CON-1809 | Fix overlapping of anchored element

please do not use globals inside module - consider adding `wikia.window` as module dependency