create map.js for history view