Fix delay-loading of map javascript.