modify the javascript when mouse enter card