CON-1809 | Fix overlapping of anchored element

consider adding `wikia.window` as dependency and by using it inside closure avoid using globals like `document`