Changed javascript loading for background maps

Should fix intermittent problem where background map doesn’t display at
all.