adding javascript file and map view for map to be accessed through group