Fix tooltip not showing up bug: needed to add elements properly rather than
using .innerHTML