Fix for Issue #2: Pass window object into plugin