Trying to fix 'Strict mode forbids implicit creation of global property'