if statement added to jquery skills hover function