Fix bug with tooltip behavior.

- Changed the way the line paths were being inserted into the DOM. We
need them before the dots so we get the right behavior with the
mouseover, mousemove and mouseout events.