Fixing minor mistakes in tooltip.js