Only pass in window to jQuery plugin