adapt map-widget to js loading mechanisms