Bubble.is plugin help. Trying to run a hook

Hello! I am working on a plugin to get simplemaps working on my site.

So far the code is as follows


and the for Function: Initialize

function(instance, context) {

var myVisual = $('<div id="myHtmlFileUSA"> </div>');

Now this works perfectly fine to display the map itself on my site, the problem is with “simplemaps_usmap_mapdata.state_specific[‘AL’].color=’#6FCF1C’;” this is just a hook that changes something on the map, but I have clearly not called it properly as I get the error “ReferenceError: simplemaps_usmap_mapdata is not defined” Not sure how to call this properly looking for some help. Thank you!