Add map code to collections script file