Fix zoom to selection box when using jQuery 1.9+.

Fixes #1250.
Merge pull request #1285 from dnschnur/jquery-attr-fix

Fix zoom to selection box when using jQuery 1.9+.