move JS include to map view