Fix jQuery error with JS map expectation.