Make Tooltip compatible with jQuery 1.9.1

These changes are to make tooltip compatible with jQuery 1.9.1