map widget now auto-loads script dependency