Better map popups, add stubmodules in AMD