Another way to do this is to buy a pet bed heater and place in the cookie tin instead of a light.
Advantage is ease of construction, disadvantage is that it costs more. Looks like an oval hockey puck with a cord, made by PetSafe
Found one at Canadian Tire...