EXOGTN-1357 fix js for displaying/hidding tooltip