broku up hover highlight into two functions
Merge pull request #6 from nifengle/js-cleanup

broke up hover highlight into two functions