Adds script which creates polyline on map