Fix jquery tooltip

Fix problems spotted by @martin-g and myself in the jquery tooltip pull request (https://github.com/WiQuery/wiquery/pull/36).