fixed clauti and ssicolon tooltip problems (changed window.event to d3.event); fixed monor jslint problems