integrated https://github.com/vchatterji/bootstrap/blob/757fe4015346448febf43a7d130d158b479c9626/src/tooltip/tooltip.js and customized for this project.