jQuery 1.9 Fixes

While using this with the jQuery migrations plugin I got errors. These changes fix those errors.