fix compatibility issues when migrating towards jquery 1.9.x
Tweak browser.js