Adding a fallback for browsers without Map

Which supports the one usage of Map in the code today which is a (value
-> int) map.