Cleaned up map_drawAsDiv and map_globalVar.