Make globalEvents an Object