Fixed JS map errors