A man has been accused of starting a fire with the intention of endangering life after a blaze at a commercial property in Huddersfield.