Javascript - tooltips directions - easier visualization

Changed the order of the visualization. It is not the css order, however it is easier to see the tooltips
Merge pull request #8730 from eluttner/3.0.0-wip

Javascript - tooltips directions - easier visualization