pushed map-related js in to proper react classes