[Bug 918115] fix tooltip JS to be mobile friendly