Tooltip cleanup

This pull request removes the jquery dependency from the tooltip script, which makes it faster. It also eliminates some more hackish ways of generating the tooltip, including adding CSS to the first defined stylesheet and assigning directly to HTML.