Get the window object from the passed element

@hassankhan Got rid of the need to pass the window :wink: