move popup js into Map.js file