fix the jquery error in home javascript