Little cleanup
js: fix tooltip in/out loop bug