fixed the js to add people correctly