Clean up custom tooltip javascript and add a selenium test for tooltip help