Added proper map_functions.js