Basic tooltip plugin in javascript