move the storage.local.get to events.js