pass members data to javascript of map