Using svg.getBoundingClientRect() instead of elem.offsetLeft
when calculating tooltip position.  Also replaced window.scollY with
pageYOffset.  This is for Firefox and MSIE compatibility.