Create map_functions.js