smooth tooltips
removed unnecessary calculations

which d3 already provides
fixed a positioning bug on firefox