Made map and options global variables to allow for customization of options and event listening.