Create mapfunctions.js