fix handler for flotr chart zoom and reset to pass root element to callback function