Check for maps before outputting JS.