move javascript for map view into map.js file, use js to render map on show page using variables in show view
remove unnecessary variables from maps.js