Huddersfield striker Jimmy Spencer has been ruled out for the rest of the season after undergoing surgery on a knee injury.