Fix compatibility with jQuery 1.8+.
Merge pull request #7 from carljm/fix-admin-js

Fix compatibility with jQuery 1.8+.