separated tooltip scripts and styles from testpage