Update map-directives.js