JavaScript map with modestmap