Fix zoom to selection box when using jQuery 1.9+.

Fixes #1250.