Return a JQuery object from _getCurrentWindow

In order to maintain Firefox compatibility, the _getCurrentWindow
function must return a JQuery object, otherwise the scrolling does not
work in Firefox.
Merge pull request #1 from partingclouds/master

update _getCurrentWindow