Update tooltip.js

These changes are to make tooltip compatible with jQuery 1.9.1