Get rid of global variables

Can’t init callbacks because of strict mode
maybe just `if (!data.enabled)`?