There’s also an action that gets called when a map is displayed: mappress_map_display($map). It gets passed the entire map in ($map). You might be able to output your script tags there as well.
How do I access that exactly? (not entirely understanding that bit would love to try it)