Ok, I will change that later. Usually I put the whole code of the gadget inside an anonymous function as I did for the timeline, but I forgot to do that for this one.