Moving js tooltip to script.js