Plain JavaScript method to create a tooltip for a HTML element.